package com.demo.test.service.impl;

import com.demo.test.entity.Sing;
import com.demo.test.entity.SingVo;
import com.demo.test.mapper.SingMapper;
import com.demo.test.service.ISingService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author XieHuan
 * @since 2017-06-10
 */
@Service
public class SingServiceImpl extends ServiceImpl<SingMapper, Sing> implements ISingService {

        @Autowired
        private SingMapper singMapper;
    @Override
    public List<Sing> selectAllSingByType() {
        return singMapper.selectAllSingByType();
    }

    @Override
    public List<SingVo> selectSingsByPiaoShu() {
        return singMapper.selectSingsByPiaoShu();
    }

    @Override
    public SingVo selectSingPiaoById(int id) {
        return singMapper.selectSingPiaoById(id);
    }
}
